#coding=utf-8
from django.conf.urls.defaults import *
from django.views.generic import list_detail
from models import income,call

urlpatterns = patterns('',
    (r'^/?$', 'marketing.income_views.income_list'),
    #来电记录
    (r'^income/?$', 'marketing.income_views.income_list'),
    (r'^income/page-(?P<page>\d+)/?$', 'marketing.income_views.income_list'),
    (r'^income/add/?$', 'marketing.income_views.income_add'),
    (r'^income/detail-(?P<id>\d+)/?$', 'marketing.income_views.income_detail'),
    (r'^income/modify-(?P<id>\d+)/?$', 'marketing.income_views.income_modify'),
    (r'^income/delete-(?P<id>\d+)/?$', 'marketing.income_views.income_delete'),
    (r'^income/delete/?$','marketing.income_views.income_delete'),
    #去电记录
    (r'^call/?$', 'marketing.call_views.call_list'),
    (r'^call/page-(?P<page>\d+)/?$', 'marketing.call_views.call_list'),
    (r'^call/add/?$', 'marketing.call_views.income_add'),
    (r'^call/detail-(?P<id>\d+)/?$', 'marketing.call_views.call_detail'),
    (r'^call/modify-(?P<id>\d+)/?$', 'marketing.call_views.call_modify'),
    (r'^call/delete-(?P<id>\d+)/?$', 'marketing.call_views.call_delete'),
    (r'^call/delete/?$','marketing.call_views.call_delete'),
)